package org.yelongframework.spring.web.servlet.handler.exception;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.ModelAndView;
import org.yelongframework.lang.Nullable;

/**
 * Web消息体响应异常处理器
 * 
 * @since 1.0.0
 */
@FunctionalInterface
public interface WebBodyResponseExceptionResolver {

	@Nullable
	ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response,
			@Nullable HandlerMethod handlerMethod, Exception ex);

}
